
// 用于静态数据保存
const appStore = {
   setStorage: (key, data) => {
      return new Promise((resolve, reject) => {
         try {
            uni.setStorageSync(key,data)
            resolve("缓存成功！")
         }catch(e) {
            reject("缓存失败！")
         }
      })
   },
   getStorage: (key) => {
      return uni.getStorageSync(key)
   }
}

export default appStore